'use strict';
const fs = require('fs');

const Controller = require('egg').Controller;

class HomeController extends Controller {

  async index() {
  
    let stream = fs.createReadStream(`${this.config.static.dir}/index.html`);
    this.ctx.set('Content-Type', 'text/html; charset=utf-8');
    this.ctx.body = stream;
  }

  
}

module.exports = HomeController;
